<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>GameEngine: StateMachine Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">GameEngine
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_state_machine.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_state_machine-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">StateMachine Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_state_machine_8h_source.html">StateMachine.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for StateMachine:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_state_machine.png" usemap="#StateMachine_map" alt=""/>
  <map id="StateMachine_map" name="StateMachine_map">
<area href="class_main_state.html" alt="MainState" shape="rect" coords="0,56,89,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad04e720a963e34339a125c5ff064c09b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_machine.html#ad04e720a963e34339a125c5ff064c09b">StateMachine</a> (void)</td></tr>
<tr class="separator:ad04e720a963e34339a125c5ff064c09b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88c47bc8b8ab361e46740a35a64ce795"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_machine.html#a88c47bc8b8ab361e46740a35a64ce795">~StateMachine</a> (void)</td></tr>
<tr class="separator:a88c47bc8b8ab361e46740a35a64ce795"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0fabb1a7bbbda3158636cec08623a66e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_machine.html#a0fabb1a7bbbda3158636cec08623a66e">renderGame</a> (float interpolation)=0</td></tr>
<tr class="separator:a0fabb1a7bbbda3158636cec08623a66e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ed723b00e78eac46515b636c5a8481e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_machine.html#a6ed723b00e78eac46515b636c5a8481e">updateGame</a> (int timer)=0</td></tr>
<tr class="separator:a6ed723b00e78eac46515b636c5a8481e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f89dc242f85ca11d6eb400ffa6499bf"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_machine.html#a2f89dc242f85ca11d6eb400ffa6499bf">handleInput</a> (GLFWwindow *window)=0</td></tr>
<tr class="separator:a2f89dc242f85ca11d6eb400ffa6499bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab3dd552f209ece70f8913a5fd4449db"><td class="memItemLeft" align="right" valign="top">virtual long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_machine.html#aab3dd552f209ece70f8913a5fd4449db">stateChanger</a> ()=0</td></tr>
<tr class="separator:aab3dd552f209ece70f8913a5fd4449db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39949e8a92cdca4854ac5394d6e0ba42"><td class="memItemLeft" align="right" valign="top">virtual long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_machine.html#a39949e8a92cdca4854ac5394d6e0ba42">getKeyCode</a> ()=0</td></tr>
<tr class="separator:a39949e8a92cdca4854ac5394d6e0ba42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec67074ebf4261300ba77d216ac156bd"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_machine.html#aec67074ebf4261300ba77d216ac156bd">reInit</a> ()=0</td></tr>
<tr class="separator:aec67074ebf4261300ba77d216ac156bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a603ac1e07086d9b031f47ce1fe3b87b5"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_machine.html#a603ac1e07086d9b031f47ce1fe3b87b5">init</a> ()=0</td></tr>
<tr class="separator:a603ac1e07086d9b031f47ce1fe3b87b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_state_machine_8h_source.html#l00014">14</a> of file <a class="el" href="_state_machine_8h_source.html">StateMachine.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ad04e720a963e34339a125c5ff064c09b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">StateMachine::StateMachine </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_state_machine_8cpp_source.html#l00010">10</a> of file <a class="el" href="_state_machine_8cpp_source.html">StateMachine.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a88c47bc8b8ab361e46740a35a64ce795"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">StateMachine::~StateMachine </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_state_machine_8cpp_source.html#l00015">15</a> of file <a class="el" href="_state_machine_8cpp_source.html">StateMachine.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a39949e8a92cdca4854ac5394d6e0ba42"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual long StateMachine::getKeyCode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="class_main_state.html#aab4b71831fb341d73f85ae43a5587f65">MainState</a>.</p>

<p>Referenced by <a class="el" href="_main_frame_8cpp_source.html#l00166">MainFrame::update()</a>, and <a class="el" href="_gameloop_8cpp_source.html#l00115">Gameloop::update()</a>.</p>

</div>
</div>
<a class="anchor" id="a2f89dc242f85ca11d6eb400ffa6499bf"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void StateMachine::handleInput </td>
          <td>(</td>
          <td class="paramtype">GLFWwindow *&#160;</td>
          <td class="paramname"><em>window</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="class_main_state.html#ab4e535f65024f7e0d9fbada13bc7b641">MainState</a>.</p>

<p>Referenced by <a class="el" href="_main_frame_8cpp_source.html#l00174">MainFrame::handleInput()</a>, and <a class="el" href="_gameloop_8cpp_source.html#l00125">Gameloop::handleInput()</a>.</p>

</div>
</div>
<a class="anchor" id="a603ac1e07086d9b031f47ce1fe3b87b5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void StateMachine::init </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="class_main_state.html#aa4959f936beed6ef182d3e1ddf97cbfd">MainState</a>.</p>

</div>
</div>
<a class="anchor" id="aec67074ebf4261300ba77d216ac156bd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void StateMachine::reInit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="class_main_state.html#a94ee0dc0f5ec2fd60e08b9a48d09b4ab">MainState</a>.</p>

<p>Referenced by <a class="el" href="_state_manager_8cpp_source.html#l00035">StateManager::callStates()</a>.</p>

</div>
</div>
<a class="anchor" id="a0fabb1a7bbbda3158636cec08623a66e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void StateMachine::renderGame </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>interpolation</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="class_main_state.html#ade0581557833ba68939eb7ac7bba7854">MainState</a>.</p>

<p>Referenced by <a class="el" href="_main_frame_8cpp_source.html#l00154">MainFrame::render()</a>, and <a class="el" href="_gameloop_8cpp_source.html#l00102">Gameloop::render()</a>.</p>

</div>
</div>
<a class="anchor" id="aab3dd552f209ece70f8913a5fd4449db"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual long StateMachine::stateChanger </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="class_main_state.html#a87eb6bb57218c385762b78e069e7ff35">MainState</a>.</p>

<p>Referenced by <a class="el" href="_main_frame_8cpp_source.html#l00166">MainFrame::update()</a>, and <a class="el" href="_gameloop_8cpp_source.html#l00115">Gameloop::update()</a>.</p>

</div>
</div>
<a class="anchor" id="a6ed723b00e78eac46515b636c5a8481e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void StateMachine::updateGame </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>timer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="class_main_state.html#a3f5551acd1ce1137de961a91e89983be">MainState</a>.</p>

<p>Referenced by <a class="el" href="_main_frame_8cpp_source.html#l00166">MainFrame::update()</a>, and <a class="el" href="_gameloop_8cpp_source.html#l00115">Gameloop::update()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>C:/Users/Axel/Desktop/informatica/Projects/Workspace C++/Game Engine/src/StateManagement/<a class="el" href="_state_machine_8h_source.html">StateMachine.h</a></li>
<li>C:/Users/Axel/Desktop/informatica/Projects/Workspace C++/Game Engine/src/StateManagement/<a class="el" href="_state_machine_8cpp_source.html">StateMachine.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_state_machine.html">StateMachine</a></li>
    <li class="footer">Generated on Fri Dec 13 2013 19:38:40 for GameEngine by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.5 </li>
  </ul>
</div>
</body>
</html>
